package com.study.selection.service;

import com.study.selection.model.Teacher;
import org.springframework.stereotype.Service;

import java.util.List;

public interface TeacherService {
    List<Teacher> findAll();

    List<Teacher> findByKey(String key);

    boolean addTeacher(Teacher teacher);

    //根据学院编号获取对象

    List<Teacher> getByCollegeId(int collegeId);

    Teacher getByTeacherId(int teacherId);

    boolean updateTeacher(Teacher teacher);
    // 逻辑删除
    boolean deleteTeacher(int teacherId);

}
